package com.zhanghp.demo02.visitor;

import com.zhanghp.demo02.object.Circle;
import com.zhanghp.demo02.object.CompoundShape;
import com.zhanghp.demo02.object.Dot;
import com.zhanghp.demo02.object.Rectangle;

/**
 * @author zhanghp
 * @date 2022-08-11 15:10
 */
public interface Visitor {
    String visitDot(Dot dot);

    String visitCircle(Circle circle);

    String visitRectangle(Rectangle rectangle);

    String visitCompoundGraphic(CompoundShape cg);
}